Skip to content

Dedupe when returning all feature names #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benmccallum
Copy link

@benmccallum benmccallum commented May 8, 2025

Why this PR?

Closes #534

Visible Changes

For developers using a IFeatureDefinitionProvider that can return multiple FeatureDefinition items with the same Name, as is the case with the built-in Microsoft.FeatureManagement.ConfigurationFeatureDefinitionProvider (which sources from the MS schema and the DotNet schema), FeatureManagement::GetFeatureNamesAsync will no longer return duplicates if a feature is configured multiple times (i.e. in each of those schema).

This will help folks wanting to transition over gracefully, but could be considered a breaking change to current behaviour.

Note: Duplicate feature names in the one schema is already de-duped, as a test I added proved.

@benmccallum benmccallum changed the title Dedupe when returning all feature names from mutiple Dedupe when returning all feature names May 8, 2025
@benmccallum
Copy link
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GetFeatureNames can return duplicates
1 participant